﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;

namespace Vit.Web.Extensions
{
    public static class DataContextExtensions
    {
        public static void Configuration(this DataContext context, bool enableLazyLoading, bool enableObjectTracking)
        {
            context.DeferredLoadingEnabled = enableLazyLoading;
            context.ObjectTrackingEnabled = enableObjectTracking;
        }
    }
}
